import type { resData_Inf } from "@/store/router/index.type";
import DashboardManageRouter_Constants from "../router-dashboardManage";

/*
 * @Descripttion:设备模块菜单路由
 * @LastEditors: xzh
 * @LastEditTime: 2024-06-10 10:13:45
 */
export default class EquipManageRouter_Constants extends DashboardManageRouter_Constants {
  /**
   * @Author: xzh
   * @Descripttion:设备基本资料
   * @Param:
   */
  static equipBaseInfoManage: Array<resData_Inf> = [
    {
      guid: "guid_equipBaseInfo",
      parentGuid: "guid_equipManage",
      liDataName: "equipBaseInfo",
      //t("page.equipManageArr.equipBaseInfo")
      liName: "page.equipManageArr.equipBaseInfo",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_equipType",
      parentGuid: "guid_equipBaseInfo",
      liDataName: "equipType",
      //t("page.equipManageArr.equipType")
      liName: "page.equipManageArr.equipType",
      liHref: "equipManage/equipBaseInfo/equipType/index",
    },
    {
      guid: "guid_equipState",
      parentGuid: "guid_equipBaseInfo",
      liDataName: "equipState",
      //t("page.equipManageArr.equipState")
      liName: "page.equipManageArr.equipState",
      liHref: "equipManage/equipBaseInfo/equipState/index",
    },
    {
      guid: "guid_equipArchives",
      parentGuid: "guid_equipBaseInfo",
      liDataName: "equipArchives",
      //t("page.equipManageArr.equipArchives")
      liName: "page.equipManageArr.equipArchives",
      liHref: "equipManage/equipBaseInfo/equipArchives/index",
    },
    {
      guid: "guid_equipAbnormal",
      parentGuid: "guid_equipBaseInfo",
      liDataName: "equipAbnormal",
      //t("page.abnormalManageArr.equipAbnormal")
      liName: "page.abnormalManageArr.equipAbnormal",
      liHref: "abnormalManage/equipAbnormal/index",
    },
    {
      guid: "guid_equipRegister",
      parentGuid: "guid_equipBaseInfo",
      liDataName: "equipRegister",
      //t("page.equipManageArr.equipRegister")
      liName: "page.equipManageArr.equipRegister",
      liHref: "equipManage/equipBaseInfo/equipRegister/index",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 设备备件
   * @Param:
   */
  static equipSpare: Array<resData_Inf> = [
    {
      guid: "guid_equipSpare",
      parentGuid: "guid_equipManage",
      liDataName: "equipSpare",
      //t("page.equipSpare")
      liName: "page.equipSpare",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_equipSpareLedger",
      parentGuid: "guid_equipSpare",
      liDataName: "equipSpareLedger",
      //t("page.equipSpareArr.spareLedger")
      liName: "page.equipSpareArr.spareLedger",
      liHref: "equipManage/equipSpare/spareLedger/index",
    },
    {
      guid: "guid_equipSpareType",
      parentGuid: "guid_equipSpare",
      liDataName: "equipSpareType",
      //t("page.equipSpareArr.spareType")
      liName: "page.equipSpareArr.spareType",
      liHref: "equipManage/equipSpare/spareType/index",
    },
    {
      guid: "guid_equipInBoundManage",
      parentGuid: "guid_equipSpare",
      liDataName: "equipInBoundManage",
      //t("page.inventoryManageArr.inBoundManage")
      liName: "page.inventoryManageArr.inBoundManage",
      liHref: "equipManage/equipSpare/inBoundManage/index",
    },
    {
      guid: "guid_equipOutBoundManage",
      parentGuid: "guid_equipSpare",
      liDataName: "equipOutBoundManage",
      //t("page.inventoryManageArr.outBoundManage")
      liName: "page.inventoryManageArr.outBoundManage",
      liHref: "equipManage/equipSpare/outBoundManage/index",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion: 设备维修
   * @Param:
   */
  static equipRepair: Array<resData_Inf> = [
    {
      guid: "guid_equipRepair",
      parentGuid: "guid_equipManage",
      liDataName: "equipRepair",
      //t("page.equipRepair")
      liName: "page.equipRepair",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_faultType",
      parentGuid: "guid_equipRepair",
      liDataName: "faultType",
      //t("page.equipRepairArr.faultType")
      liName: "page.equipRepairArr.faultType",
      liHref: "equipManage/equipRepair/faultType/index",
    },
    {
      guid: "guid_faultRepair",
      parentGuid: "guid_equipRepair",
      liDataName: "faultRepair",
      //t("page.equipRepairArr.faultRepair")
      liName: "page.equipRepairArr.faultRepair",
      liHref: "equipManage/equipRepair/faultRepair/index",
    },
    {
      guid: "guid_repairRecord",
      parentGuid: "guid_equipRepair",
      liDataName: "repairRecord",
      //t("page.equipRepairArr.repairRecord")
      liName: "page.equipRepairArr.repairRecord",
      liHref: "equipManage/equipRepair/repairRecord/index",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion: 设备保养
   * @Param:
   */
  static equipUpkeep: Array<resData_Inf> = [
    {
      guid: "guid_equipUpkeep",
      parentGuid: "guid_equipManage",
      liDataName: "equipUpkeepParentManage",
      //t("page.equipRepair")
      liName: "page.equipUpkeep",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_upkeepItem",
      parentGuid: "guid_equipUpkeep",
      liDataName: "upkeepItem",
      //t("page.equipUpkeepArr.upkeepItem")
      liName: "page.equipUpkeepArr.upkeepItem",
      liHref: "equipManage/equipUpkeep/upkeepItem/index",
    },
    {
      guid: "guid_upkeepPlan",
      parentGuid: "guid_equipUpkeep",
      liDataName: "upkeepPlan",
      //t("page.equipUpkeepArr.upkeepPlan")
      liName: "page.equipUpkeepArr.upkeepPlan",
      liHref: "equipManage/equipUpkeep/upkeepPlan/index",
    },
    {
      guid: "guid_upkeepRecord",
      parentGuid: "guid_equipUpkeep",
      liDataName: "upkeepRecord",
      //t("page.equipUpkeepArr.upkeepRecord")
      liName: "page.equipUpkeepArr.upkeepRecord",
      liHref: "equipManage/equipUpkeep/upkeepRecord/index",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion:设备管理
   * @Param:
   */
  static equipManage: Array<resData_Inf> = [
    // 设备基本信息
    ...this.equipBaseInfoManage,
    // 设备备件
    ...this.equipSpare,
    // 设备维修
    ...this.equipRepair,
    // 设备保养
    ...this.equipUpkeep,
  ];
}
